; Auto open every address from the clipboard.
; Author: Roger Xu
; Created: 2011-02-16
; Last Modified: 2011-02-16

openPage(address, port)
{
    BROWSER_PATH=E:\Program Files\PortableApps\FirefoxPortable\FirefoxPortable.exe

    protocol := "http"
    if (port=443)
    {
        protocol := "https"
    }

    Run, "%BROWSER_PATH%" "%protocol%://%address%"
}

;Win+O to auto open
#o::

Loop 254
{
    address := clipboard . "." . A_Index
    openPage(address, 443)
    Sleep, 300
}
return
